package com.caigou.bean.cms.param;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class QuestionParam {
    private String formId;//表单id
    private Integer questionId;//题目id

    private String label;//题目标题，对应t_survey_question表的question_title
    private Integer questionOrder;//题目序号，对应t_survey_q表的question_order
    private String tag;//组件类型，对应t_survey_question表的question_type
    private String tagIcon;//组件Icon，与组件类型对应
    private String[] defaultValue = {};
    private String layout="colFormItem";//表单归属,固定值
    private Boolean required;//是否必填，对应t_survey_question表的is_must
    private Boolean orderShow;//序号是否显示，对应t_survey_question表is_display_order
    private Boolean titleShow;//标题是否显示，对应t_survey_question表的is_display_title
    private Boolean optionShow;//选项序号是否显示，对应t_survey_question表的is_display_option_order
    private Boolean subUnit;// 组件说明是否启用，对应t_survey_question表的is_display_description
    private String subUnitTxt; // 组件说明文字，对应t_survey_question表的question_description
    private Boolean optionDetailShow;// 选项详情是否显示，对应t_survey_question表的is_display_option_detail
    private Boolean limit;//多选数目限制开关，对应t_survey_question表的is_limit

    private Integer min;//多选情况下，最少选择数量
    private Integer max;//多选情况下，最多限制数量

    private String type;//多行文本的input type===textarea
    private String placeholder;//单行文本、多行文本提示

    private Integer regId;//正则表达式，对应t_survey_question表的regular_id


}
